package org.zjx.command.basic;


import org.zjx.command.Command;
import org.zjx.core.GameWindow;

/**
 * 输入指令 - 需要激活
 */
public class WriteCommand extends Command {
    private final String text;

    public WriteCommand(GameWindow window, String text) {
        super(window, true, "Type[" + (text.length() > 10 ? text.substring(0, 10) + "..." : text) + "]");
        this.text = text;
    }

    @Override
    protected void doExecute() {
        System.out.println("[Command] Typing text: " + text);
    }
}
